﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildPositonModify extends IMessageBase
    {
        public var operName:String;
        public var guildName:String;
        public var positon:EGuildPosition;
        public const _type:int = 16113;
        public static var _regist:SGuildPositonModify = new SGuildPositonModify(true);

        public function SGuildPositonModify(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildPositonModify();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.operName);
            param1.writeString(this.guildName);
            this.positon.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.operName = param1.readString();
            this.guildName = param1.readString();
            this.positon = EGuildPosition.__read(param1);
            return;
        }// end function

    }
}
